Part Number Hot Search : 
5236B BD232 CXD1922Q W9121 LNK362G U05TH44 TDA4455 2SJ247
Product Description
Full Text Search
 

To Download DS1972-F3 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  1 of 23 rev: 083006 note: some revisions of this device may incorporate deviations from published specifications known as errata. multiple revisions of any device may be simultaneously available through various sales channels. for information about device errata, click here: www.maxim-ic.com/errata . i button description the ds1972 is a 1024-bit, 1-wire ? eeprom organized as four memory pages of 256 bits each in a rugged i button package. data is written to an 8- byte scratchpad, verified, and then copied to the eeprom memory. as a special feature, the four memory pages can individually be write protected or put in eprom-emulation mode, where bits can only be changed from a 1 to a 0 state. the ds1972 communicates over the single-conductor 1-wire bus. the communication follows the standard dallas semiconductor 1-wire protocol. each device has its own unalterable and unique 64-bit rom registration number that is factory lasered into the device. the registration number is used to address the device in a multidrop 1-wire net environment. applications access control/parking meter work-in-progress tracking tool management inventory control maintenance/inspection data storage f5 and f3 microcan 0.51 5.89 io 16.25 17.35 51 2d 0000006234fb  1-wire   3.10 io gnd 0.51 gnd f3 size f5 size branding special features  1024 bits of eeprom memory partitioned into four pages of 256 bits  individual memory pages can be permanently write protected or put in eprom-emulation mode ("write to 0")  switchpoint hysteresis and filtering to optimize performance in the presence of noise  iec 1000-4-2 level 4 esd protection (8kv contact, 15kv air, typical)  reads and writes over a wide voltage range of 2.8v to 5.25v from -40c to +85c  communicates to host with a single digital signal at 15.4kbps or 125kbps using 1-wire protocol common i button features  unique factory-lasered 64-bit registration number assures error-free device selection and absolute traceability because no two parts are alike  built-in multidrop controller for 1-wire net  chip-based data carrier stores digital identifi- cation and information, armored in a durable stainless-steel case  data can be accessed while affixed to object  button shape is self-aligning with cup-shaped probes  easily affixed with self-stick adhesive backing, latched by its flange, or locked with a ring pressed onto its rim  presence detector acknowledges when reader first applies voltage  designed to meet ul#913 (4th edit.); intrinsically safe apparatus: under entity concept for use in class i, division 1, group a, b, c, and d locations, contact dallas semiconductor for certification schedule ordering information part temp range pin-package ds1972-f5# -40c to 85c f5 i button DS1972-F3# -40c to 85c f3 i button # indicates rohs complience contact factory lead-free compliance commands, registers, and modes are capitalized for clarity. i button, 1-wire, and microcan are registered trademarks of dallas semiconductor corp. ds1972 1024-bit eeprom i button www.maxim-ic.com
ds1972: 1024-bit eeprom i button 2 of 23 absolute maximum ratings i/o voltage to gnd -0.5v, +6v i/o sink current 20ma operating temperature range -40c to +85c junction temperature +150c storage temperature range -40c to +85c stresses beyond those listed under ?absolute maximum ratings? may cause permanent damage to the device. these are stress rating s only, and functional operation of the device at these or any other conditions beyond those indicated in the operational sections of t he specifications is not implied. exposure to the absolute maximum rating conditions for extended periods may affect device reliability. electrical characteristics (t a = -40c to +85c; see note 1.) parameter symbol conditions min typ max units i/o pin general data 1-wire pullup voltage v pup (notes 2) 2.8 5.25 v 1-wire pullup resistance r pup (notes 2, 3) 0.3 2.2 k  input capacitance c io (notes 4, 5) 1000 pf input load current i l i/o pin at v pup 0.05 6.7 a high-to-low switching threshold v tl (notes 5, 6, 7) 0.46 4.4 v input low voltage v il (notes 2, 8) 0.3 v low-to-high switching threshold v th (notes 5, 6, 9) 1.0 4.9 v switching hysteresis v hy (notes 5, 6, 10) 0.21 1.70 v output low voltage v ol at 4ma (note 11) 0.4 v standard speed, r pup = 2.2k  5 overdrive speed, r pup = 2.2k  2 recovery time (notes 2,12) t rec overdrive speed, directly prior to reset pulse; r pup = 2.2k  5 s standard speed 0.5 5.0 rising-edge hold-off time (notes 5, 13) t reh overdrive speed not applicable (0) s standard speed 65 timeslot duration (note 2, 14) t slot overdrive speed 8 s i/o pin, 1-wire reset, presence detect cycle standard speed 480 640 reset low time (note 2) t rstl overdrive speed 48 80 s standard speed 15 60 presence detect high time t pdh overdrive speed 2 6 s standard speed 60 240 presence detect low time t pdl overdrive speed 8 24 s standard speed 60 75 presence detect sample time (notes 2, 15) t msp overdrive speed 6 10 s i/o pin, 1-wire write standard speed 60 120 overdrive speed, v pup > 4.5v 5 15.5 write-0 low time (notes 2, 16) t w0l overdrive speed 6 15.5 s standard speed 1 15 -  write-1 low time (notes 2, 17) t w1l overdrive speed 1 2 -  s i/o pin, 1-wire read standard speed 5 15 -  read low time (notes 2, 18) t rl overdrive speed 1 2 -  s standard speed t rl +  15 read sample time (notes 2, 18) t msr overdrive speed t rl +  2 s
ds1972: 1024-bit eeprom i button 3 of 23 parameter symbol conditions min typ max units eeprom programming current i prog (note 5, 19) 0.8 ma programming time t prog (note 20) 10 ms at 25c 200k write/erase cycles (en- durance) (notes 21, 22) n cy at 85c (worst case) 50k --- data retention (notes 23, 24) t dr at 85c (worst case) 10 years note 1: specifications at t a = -40c are guaranteed by design only and not production-tested. note 2: system requirement. note 3: maximum allowable pullup resistance is a function of the number of 1-wire devices in the system and 1-wire recovery times. the specified value here applies to systems with only one device and with the minimum 1-wire recovery times. for more heavily loaded systems, an active pullup such as that found in the ds2482-x00, ds2480b, or ds2490 may be required. note 4: maximum value represents the internal parasite capacitance when v pup is first applied. if a 2.2k  resistor is used to pull up the data line, 2.5s after v pup has been applied the parasite capacitance will not affect normal communications. note 5: guaranteed by design, characterization and/or simulation only. not production tested. note 6: v tl , v th , and v hy are a function of the internal supply voltage which is itself a function of v pup , r pup , 1-wire timing, and capacitive loading on io. lower v pup , higher r pup , shorter t rec , and heavier capacitive loading all lead to lower values of v tl , v th , and v hy . note 7: voltage below which, during a falling edge on io, a logic 0 is detected. note 8: the voltage on io needs to be less or equal to v il(max) at all times the master is driving io to a logic-0 level. note 9: voltage above which, during a rising edge on io, a logic 1 is detected. note 10: after v th is crossed during a rising edge on io, the voltage on io has to drop by at least v hy to be detected as logic '0'. note 11: the i-v characteristic is linear for voltages less than 1v. note 12: applies to a single device attached to a 1-wire line. note 13: the earliest recognition of a negative edge is possible at t reh after v th has been reached on the preceding rising edge. note 14: defines maximum possible bit rate. equal to t w0l(min) + t rec(min) . note 15: interval after t rstl during which a bus master is guaranteed to sample a logic-0 on io if there is a ds1972 present. minimum limit is t pdh(max) ; maximum limit is t pdh(min) + t pdl(min) . note 16: highlighted numbers are not in compliance with legacy 1-wire product standards. see comparison table below. note 17:  represents the time required for the pullup circuitry to pull the voltage on io up from v il to v th . note 18:  represents the time required for the pullup circuitry to pull the voltage on io up from v il to the input high threshold of the bus master. note 19: current drawn from io during the eeprom programming interval. the pullup circuit on io during the programming interval should be such that the voltage at io is greater than or equal to vpup(min). if vpup in the system is close to vpup(min) then a low impedance bypass of rpup which can be activated during programming may need to be added. note 20: interval begins t wilmin after the leading negative edge on io for the last timeslot of the e/s byte for a valid copy scratchpad sequence. interval ends once the device's self-timed eeprom programming cycle is complete and the current drawn by the device has returned from i prog to i l . note 21: write-cycle endurance is degraded as t a increases. note 22: not 100% production-tested; guaranteed by reliability monitor sampling. note 23: data retention is degraded as t a increases. note 24: guaranteed by 100% production test at elevated temperature for a shorter time; equivalence of this production test to data shee t limit at operating temperature range is established by reliability testing. legacy values ds1972 values parameter standard speed overdrive speed standard speed overdrive speed min max min max min max min max t slot (incl. t rec ) 61s (undef.) 7s (undef.) 65s 1) (undef.) 8s 1) (undef.) t rstl 480s (undef.) 48s 80s 480s 640s 48s 80s t pdh 15s 60s 2s 6s 15s 60s 2s 6s t pdl 60s 240s 8s 24s 60s 240s 8s 24s t w0l 60s 120s 6s 16s 60s 120s 6s 15.5s 1) intentional change, longer recovery time requirement due to modified 1-wire front end. examples of accessories part description ds9096p self-stick adhesive pad ds9101 multipurpose clip ds9093ra mounting lock ring ds9093a snap-in fob ds9092 i button probe
ds1972: 1024-bit eeprom i button 4 of 23 description the ds1972 combines 1024 bits of eeprom, an 8-byte register/control page with up to 7 user read/write bytes, and a fully-featured 1-wire interface in a rugged i button package. each ds1972 has its own 64-bit rom registration number that is factory lasered to provide a guaranteed unique identity for absolute traceability. data is transferred serially via the 1-wire protocol, which requires only a single data contact and a ground return. the ds1972 has an additional memory area called the scratchpad that acts as a buffer when writing to the main memory or the register page. data is first written to the scratchpad from which it can be read back. after the data has been verified, a copy scratchpad command transfers the data to its final memory location. applications of the ds1972 include access control/parking meter, work-in-progress tracking, tool management, inventory control, and maintenance/inspection data storage. software for communication with the ds1972 is available for free download from the http://www.maxim-ic.com/products/ibutton/ website. overview the block diagram in figure 1 shows the relationships between the major control and memory sections of the ds1972. the ds1972 has four main data components: 1) 64-bit lasered rom, 2) 64-bit scratchpad, 3) four 32-byte pages of eeprom, and 4) 64-bit register page. the hierarchical structure of the 1-wire protocol is shown in figure 2. the bus master must first provide one of the seven rom function commands, 1) read rom, 2) match rom, 3) search rom, 4) skip rom, 5) resume, 6) overdrive-skip rom or 7) overdrive-match rom. upon completion of an overdrive rom command byte executed at standard speed, the device enters overdrive mode where all subsequent communication occurs at a higher speed. the protocol required for these rom function commands is described in figure 9. after a rom function command is successfully executed, the memory functions become accessible and the master may provide any one of the four memory function commands. the protocol for these memory function commands is described in figure 7. all data is read and written least significant bit first. figure 1. block diagram parasite power i/o 64-bit lasered rom 1-wire function control 64-bit scratchpad data memory 4 pages of 256 bits each crc16 generator memory function control unit register page 64 bits ds1972
ds1972: 1024-bit eeprom i button 5 of 23 figure 2. hierarchical structure for 1-wire protocol a vailable commands: ds1972 command level: data field a ffected: 1-wire rom function commands (see figure 9) ds1972-specific memory function commands (see figure 7) read rom match rom search rom skip rom resume overdrive-skip overdrive-match 64-bit reg. #, rc-flag 64-bit reg. #, rc-flag 64-bit reg. #, rc-flag rc-flag rc-flag rc-flag, od-flag 64-bit reg. #, rc-flag, od-flag write scratchpad read scratchpad copy scratchpad read memory 64-bit scratchpad, flags 64-bit scratchpad data memory, register page data memory, register page 64-bit lasered rom each ds1972 contains a unique rom code that is 64 bits long. the first 8 bits are a 1-wire family code. the next 48 bits are a unique serial number. the last 8 bits are a crc (cyclic redundancy check) of the first 56 bits. see figure 3 for details. the 1-wire crc is generated using a po lynomial generator consisting of a shift register and xor gates as shown in figure 4. the polynomial is x 8 + x 5 + x 4 + 1. additional information about the dallas 1-wire crc is available in application note 27 . the shift register bits are initialized to 0. then starting with the least significant bit of the family code, one bit at a time is shifted in. after the 8th bit of the family code has been entered, then the serial number is entered. after the last bit of the serial number has been entered, the shift regi ster contains the crc value. shifting in the 8 bits of the crc returns the shift register to all 0s. figure 3. 64-bit lasered rom msb lsb 8-bit crc code 48-bit serial number 8-bit family code (2dh) msb lsb msb lsb msb lsb figure 4. 1-wire crc generator x 0 x 1 x 2 x 3 x 4 x 5 x 6 x 7 x 8 polynomial = x 8 + x 5 + x 4 + 1 1 st stage 2 nd stage 3 rd stage 4 th stage 6 th stage 5 th stage 7 th stage 8 th stage input data
ds1972: 1024-bit eeprom i button 6 of 23 figure 5. memory map address range type description protection codes 0000h to 001fh r/(w) data memory page 0 0020h to 003fh r/(w) data memory page 1 0040h to 005fh r/(w) data memory page 2 0060h to 007fh r/(w) data memory page 3 0080h 1) r/(w) protection control byte page 0 55h: write protect p0; aah: eprom mode p0; 55h or aah: write protect 80h 0081h 1) r/(w) protection control byte page 1 55h: write protect p1; aah: eprom mode p1; 55h or aah: write protect 81h 0082h 1) r/(w) protection control byte page 2 55h: write protect p2; aah: eprom mode p2; 55h or aah: write protect 82h 0083h 1) r/(w) protection control byte page 3 55h: write protect p3; aah: eprom mode p3; 55h or aah: write protect 83h 0084h 1) r/(w) copy protection byte 55h or aah: copy protect 0080:008fh, and any write-protected pages 0085h r factory byte. set at factory. aah:write protect 85h, 86h, 87h; 55h: write protect 85h, unprotect 86h, 87h 0086h r/(w) user byte/manufacturer id 0087h r/(w) user byte/manufacturer id 0088h to 008fh n/a reserved 1) once programmed to aah or 55h this address becomes read-only. all other codes can be stored but will neither write-protect the address nor activate any function. memory data memory and registers are located in a linear address space, as shown in figure 5. the data memory and the registers have unrestricted read access. the ds1972 eeprom array consists of 18 rows of 8 bytes each. the first 16 rows are divided equally into 4 memory pages (32 bytes each). these 4 pages are the primary data memory. each page can be individually set to open (unprotected), write-protected, or eprom mode by setting the associated protection byte in the register row. the last two rows contain protection registers, and reserved bytes. the register row consists of 4 protection control bytes, a copy protection byte, the factory byte, and two user byte/manufacture id bytes. the manufacturer id can be a customer-supplied identification code that assists the application software in identifying the product the ds1972 is associated with. contact the factory to set up and register a custom manufacturer id. the last row is reserved for future use. it is undefined in terms of r/w functionality and should not be used. in addition to the main eeprom array, an 8-byte volatile scratchpad is included. writes to the eeprom array are a two-step process. first, data is written to the scratchpad, and then copied into the main array. this allows the user to first verify the data written to scratchpad prior to copying into the main array. the device only supports full row (8-byte) copy operations. in order for data in the scratchpad to be valid for a copy operation, the address supplied with a write scratchpad must start on a row boundary, and 8 full bytes must be written into the scratchpad.
ds1972: 1024-bit eeprom i button 7 of 23 the protection control registers determine how incoming data on a write scratchpad command is loaded into the scratchpad. a protection setting of 55h (write protect) causes the incoming data to be ingnored and the target address main memory data to be loaded into the scratchpad. a protection setting of aah (eprom mode) causes the logical and of incoming data and target address main memory data to be loaded into the scratchpad. any other protection control register setting leaves the associated memory page open for unrestricted write access. protection control byte settings of 55h or aah also write protects the protection control byte. the protection-control byte setting of 55h does not block the copy. this allows write-protected data to be refreshed (i. e., reprogrammed with the current data) in the device. the copy protection byte is used for a higher level of security, and should only be used after all other protection control bytes, user bytes, and write-protected pages are set to their final value. if the copy protection byte is set to 55h or aah, all copy attempts to the register row and user byte row are blocked. in addition, all copy attempts to write-protected main memory pages (i. e., refresh) are blocked. address registers and transfer status the ds1972 employs three address registers: ta1, ta2, and e/s (figure 6). these registers are common to many other 1-wire devices but operate slightly differently with the ds1972. registers ta1 and ta2 must be loaded with the target address to which the data is written or from which data is read. register e/s is a read-only transfer- status register, used to verify data integrity with write commands. e/s bits e2:e0 are loaded with the incoming t2:t0 on a write scratchpad command, and increment on each subsequent data byte. this is in effect a byte- ending offset counter within the 8-byte scratchpad. bit 5 of the e/s register, called pf, is a logic 1 if the data in the scratchpad is not valid due to a loss of power or if the master sends less bytes than needed to reach the end of the scratchpad. for a valid write to the scratchpad, t2:t0 must be 0 and the master must have sent 8 data bytes. bits 3, 4, and 6 have no function; they always read 0. the highest valued bit of the e/s register, called aa or authorization accepted, acts as a flag to indicate that the data stored in the scratchpad has already been copied to the target memory address. writing data to the scratchpad clears this flag. figure 6. address registers bit # 7 6 5 4 3 2 1 0 target address (ta1) t7 t6 t5 t4 t3 t2 t1 t0 target address (ta2) t15 t14 t13 t12 t11 t10 t9 t8 ending address with data status (e/s) (read only) aa 0 pf 0 0 e2 e1 e0
ds1972: 1024-bit eeprom i button 8 of 23 writing with verification to write data to the ds1972, the scratchpad has to be used as intermediate storage. first the master issues the write scratchpad command to specify the desired target address, followed by the data to be written to the scratchpad. note that copy scratchpad commands must be performed on 8-byte boundaries, i. e., the 3 lsbs of the target address (t2..t0) must be equal to 000b. if t2..t0 are sent with non-zero values, the copy function will be blocked. under certain conditions (see write scratchpad command) the master will receive an inverted crc16 of the command, address (actual address sent) and data at the end of the write scratchpad command sequence. knowing this crc value, the master can compare it to the value it has calculated itself to decide if the communication was successful and proceed to the copy scratchpad command. if the master could not receive the crc16, it should send the read scratchpad command to verify data integrity. as a preamble to the scratchpad data, the ds1972 repeats the target address ta1 and ta2 and sends the contents of the e/s register. if the pf flag is set, data did not arrive correctly in the scratchpad or there was a loss of power since data was last written to the scratchpad. the master does not need to continue reading; it can start a new trial to write data to the scratchpad. similarly, a set aa flag together with a cleared pf flag indicates that the device did not recognize the write command. if everything went correctly, both flags are cleared. now the master can continue reading and verifying every data byte. after the master has verified the data, it can send the copy scratchpad command, for example. this command must be followed exactly by the data of the three address registers, ta1, ta2, and e/s. the master should obtain the contents of these registers by reading the scratchpad. memory function commands the memory function flow chart (figure 7) describes the protocols necessary for accessing the memory of the ds1972. an example on how to use these functions to write to and read from the device is included at the end of this document. the communication between master and ds1972 takes place either at regular speed (default, od = 0) or at overdrive speed (od = 1). if not explicitly set into the overdrive mode, the ds1972 assumes regular speed. write scratchpad command [0fh] the write scratchpad command applies to the data memory, and the writable addresses in the register page. in order for the scratchpad data to be valid for copying to the array, the user must perform a write scratchpad command of 8 bytes starting at a valid row boundary. the write scratchpad command accepts invalid addresses, and partial rows, but subsequent copy scratchpad commands are blocked. after issuing the write scratchpad command, the master must first provide the 2-byte target address, followed by the data to be written to the scratchpad. the data is written to the scratchpad starting at the byte offset of t2:t0. the e/s bits e2:e0 are loaded with the starting byte offset, and increment with each susequent byte. effectively, e2:e0 is the byte offset of the last full byte written to the scratchpad. only full data bytes are accepted. when executing the write scratchpad command, the crc ge nerator inside the ds1972 (f igure 13) calculates a crc of the entire data stream, starting at the command code and ending at the last data byte as sent by the master. this crc is generated using the crc16 polynomial by first clearing the crc generator and then shifting in the command code (0fh) of the write scratchpad command, the target addresses (ta1 and ta2), and all the data bytes. note that the crc16 calculation is performed with the actual ta1 and ta2 and data sent by the master. the master may end the write scratchpad command at any time. however, if the end of the scratchpad is reached (e2:e0 = 111b), the master may send 16 read-t ime slots and receive the crc generated by the ds1972. if a write scratchpad is attempted to a write-protected location, the scratchpad is loaded with the data already in memory, rather than the data transmitted. similarly, if the target address page is in eprom mode, the scratchpad is loaded with the bitwise logical and of the transmitted data and data already in memory.
ds1972: 1024-bit eeprom i button 9 of 23 figure 7-1. memory function flow chart 0fh write scratch- pad ? bus master tx ta1 (t7:t0), ta2 (t15:t8) y n to figure 7 2 nd part from figure 7 2 nd part bus master tx memory function command to rom functions flow chart (figure 9) from rom functions flow chart (figure 9) a pplies only if the memory area is not p rotected. if write-protected , then the ds1972 copies the data byte from the tar- get address into the sp. if in eprom mode , then the ds1972 loads the bitwise logical and of the transmitted byte and the data byte from the targeted address into the sp. master tx reset ? master tx data byte to scratchpad ds1972 sets sets pf = 1 clears aa = 0 sets e2:e0 = t2:t0 ds1972 increments e2:e0 master tx reset ? y ds1972 tx crc16 of command, address, data bytes as they were sent by the bus master n y pf = 0 n y e2:e0 = 7 ? bus master rx ?1?s n n y t2:t0 = 0 ?
ds1972: 1024-bit eeprom i button 10 of 23 figure 7-2. memory function flow chart (continued) aah read scratch- pad ? ds1972 sets scratchpad byte counter = t2:t0 bus master rx ta1 (t7:t0), ta2 (t15:t8) and e/s byte bus master rx data byte from scratchpad bus master rx crc16 of command, address, e/s byte, data bytes as sent by the ds1972 y master tx reset ? y bus master rx ?1?s n master tx reset ? ds1972 increments b y te counter byte counter = e2:e0 ? y y n n n from figure 7 1 st part to figure 7 1 st part to figure 7 3 rd part from figure 7 3 rd part
ds1972: 1024-bit eeprom i button 11 of 23 figure 7-3. memory function flow chart (continued) * 1-wire idle high for power from figure 7 2 nd part to figure 7 2 nd part to figure 7 4 th part from figure 7 4 th part 55h copy scratch- pad ? bus master tx ta1 (t7:t0), ta2 (t15:t8) and e/s byte y n bus master rx ?1?s master tx reset ? y n y auth. code match ? n n copy- protected ? y ds1972 copies scratch- pad data to address aa = 1 * ds1972 tx ?0? master tx reset ? master tx reset ? y n ds1972 tx ?1? n y a pplicable to all r/w memory locations. y t15:t0 < 0090h ? n pf = 0 ? y n duration: t prog
ds1972: 1024-bit eeprom i button 12 of 23 figure 7-4. memory function flow chart (continued) f0h read memory ? address < 90h ? y n bus master tx ta1 (t7:t0), ta2 (t15:t8) y n ds1972 sets memory address = (t15:t0) ds1972 increments address counter bus master rx ?1?s n address < 8fh ? master tx reset ? y n y master tx reset ? bus master rx data byte from memory address y n from figure 7 3 rd part to figure 7 3 rd part n bus master rx ?1?s master tx reset ? y
ds1972: 1024-bit eeprom i button 13 of 23 read scratchpad command [aah] the read scratchpad command allows verifying the target address and the integrity of the scratchpad data. after issuing the command code, the master begins reading. the first two bytes are the target address. the next byte is the ending offset/data status byte (e/s) followed by the scratchpad data, which may be different from what the master originally sent. this is of particular importance if the target address is within the register page or a page in either write protection or eprom modes. see the write scratchpad description for details. the master should read through the scratchpad (e2:e0 - t2:t0 + 1 bytes), after which it will receive the inverted crc, based on data as it was sent by the ds1972. if the master continues reading after the crc, all data will be logic 1s. copy scratchpad [55h] the copy scratchpad command is used to copy data from the scratchpad to writable memory sections. after issuing the copy scratchpad command, the master must provide a 3-byte authorization pattern, which should have been obtained by an immediately preceding read scratchpad command. this 3-byte pattern must exactly match the data contained in the three address registers (ta1, ta2, e/s, in that order). if the pattern matches, the target address is valid, the pf flag is not set, and the target memory is not copy-protected, the aa (authorization accepted) flag is set and the copy begins. all eight bytes of scratchpad contents are copied to the target memory location. the duration of the device?s internal data transfer is t prog during which the voltage on the 1-wire bus must not fall below 2.8v. a pattern of alternating 0s and 1s are transmitted after the data has been copied until the master issues a reset pulse. if the pf flag is set or the target memory is copy-protected, the copy will not begin and the aa flag will not be set. if the copy command was disturbed due to lack of power or for other reasons, the master will read a constant stream of ffh bytes until it sends a 1-wire reset pulse. in this case the destination memory may be incompletely programmed requiring a write scratchpad and copy scratchpad be repeated to ensure proper programming of the eeprom. this requires careful consideration when designing application software that writes to the ds1972 in an intermittent contact environment. read memory [f0h] the read memory command is the general function to read data from the ds1972. after issuing the command, the master must provide the 2-byte target address. after these two bytes, the master reads data beginning from the target address and may continue until address 008fh. if the master continues reading, the result will be logic 1s. the device's internal ta1, ta2, e/s, and scratchpad contents are not affected by a read memory command. 1-wire bus system the 1-wire bus is a system that has a single bus master and one or more slaves. in all instances the ds1972 is a slave device. the bus master is typically a microcontroller. the discussion of this bus system is broken down into three topics: hardware configuration, transaction sequence, and 1-wire signaling (signal types and timing). the 1-wire protocol defines bus transactions in terms of the bus state during specific time slots, which are initiated on the falling edge of sync pulses from the bus master. hardware configuration the 1-wire bus has only a single line by definition; it is important that each device on the bus be able to drive it at the appropriate time. to facilitate this, each device attached to the 1-wire bus must have open-drain or tri-state outputs. the 1-wire port of the ds1972 is open drain with an internal circuit equivalent to that shown in figure 8. a multidrop bus consists of a 1-wire bus with multiple slaves attached. the ds1972 supports both a standard and overdrive communication speed of 15.4kbps (max) and 125kbps (max), respectively. note that legacy 1-wire products support a standard communication speed of 16.3kbps and overdrive of 142kbps. the slightly reduced rates for the ds1972 are a result of additional recovery times, which in turn were driven by a 1-wire physical interface enhancement to improve noise immunity. the value of the pullup resistor primarily depends on the network size and load conditions. the ds1972 requires a pullup resistor of 2.2k  (max) at any speed.
ds1972: 1024-bit eeprom i button 14 of 23 the idle state for the 1-wire bus is high. if for any reason a transaction needs to be suspended, the bus must be left in the idle state if the transaction is to resume. if this does not occur and the bus is left low for more than 16s (overdrive speed) or more than 120s (standard speed), one or more devices on the bus may be reset. figure 8. hardware configuration open drain port pin rx = receive tx = transmit 100  mosfet v pup rx tx tx rx data r pup i l bus master ds1972 1-wire port transaction sequence the protocol for accessing the ds1972 through the 1-wire port is as follows:  initialization  rom function command  memory function command  transaction/data initialization all transactions on the 1-wire bus begin with an initialization sequence. the initialization sequence consists of a reset pulse transmitted by the bus master followed by presence pulse(s) transmitted by the slave(s). the presence pulse lets the bus master know that the ds1972 is on the bus and is ready to operate. for more details, see the 1-wire signaling section. 1-wire rom function commands once the bus master has detected a presence, it can issue one of the seven rom function commands that the ds1972 supports. all rom function commands are 8 bits long. a list of these commands follows (refer to the flow chart in figure 9). read rom [33h] this command allows the bus master to read the ds1972?s 8-bit family code, unique 48-bit serial number, and 8-bit crc. this command can only be used if there is a single slave on the bus. if more than one slave is present on the bus, a data collision occurs when all slaves try to transmit at the same time (open drain produces a wired-and result). the resultant family code and 48-bit serial number result in a mismatch of the crc. match rom [55h] the match rom command, followed by a 64-bit rom sequence, allows the bus master to address a specific ds1972 on a multidrop bus. only the ds1972 that exactly matches the 64-bit rom sequence responds to the following memory function command. all other slaves wait for a reset pulse. this command can be used with a single or multiple devices on the bus.
ds1972: 1024-bit eeprom i button 15 of 23 search rom [f0h] when a system is initially brought up, the bus master might not know the number of devices on the 1-wire bus or their registration numbers. by taking advantage of the wired-and property of the bus, the master can use a process of elimination to identify the registration numbers of all slave devices. for each bit of the registration number, starting with the least significant bit, the bus master issues a triplet of time slots. on the first slot, each slave device participating in the search outputs the true value of its registration number bit. on the second slot, each slave device participating in the search outputs the complemented value of its registration number bit. on the third slot, the master writes the true value of the bit to be selected. all slave devices that do not match the bit written by the master stop participating in the search. if both of the read bits are zero, the master knows that slave devices exist with both states of the bit. by choosing which state to write, the bus master branches in the romcode tree. after one complete pass, the bus master knows the registration number of a single device. additional passes identify the registration numbers of the remaining devices. refer to application note 187: 1-wire search algorithm for a detailed discussion, including an example. skip rom [cch] this command can save time in a single-drop bus system by allowing the bus master to access the memory functions without providing the 64-bit rom code. if more than one slave is present on the bus and, for example, a read command is issued following the skip rom command, data collision occurs on the bus as multiple slaves transmit simultaneously (open-drain pulldowns produce a wired-and result). resume [a5h] to maximize the data throughput in a multidrop environment, the resume function is available. this function checks the status of the rc bit and, if it is set, directly transfers control to the memory functions, similar to a skip rom command. the only way to set the rc bit is through successfully executing the match rom, search rom, or overdrive-match rom command. once the rc bit is set, the device can repeatedly be accessed through the resume command function. accessing another device on the bus clears the rc bit, preventing two or more devices from simultaneously responding to the resume command function. overdrive-skip rom [3ch] on a single-drop bus this command can save time by allowing the bus master to access the memory functions without providing the 64-bit rom code. unlike the normal skip rom command, the overdrive-skip rom sets the ds1972 in the overdrive mode (od = 1). all communication following this command has to occur at overdrive speed until a reset pulse of minimum 480s duration resets all devices on the bus to standard speed (od = 0). when issued on a multidrop bus, this command sets all overdrive-supporting devices into overdrive mode. to subsequently address a specific overdrive-supporting device, a reset pulse at overdrive speed has to be issued followed by a match rom or search rom command sequence. this speeds up the time for the search process. if more than one slave supporting overdrive is present on the bus and the overdrive-skip rom command is followed by a read command, data collision occurs on the bus as multiple slaves transmit simultaneously (open-drain pulldowns produce a wired-and result). overdrive-match rom [69h] the overdrive-match rom command followed by a 64-bit rom sequence transmitted at overdrive speed allows the bus master to address a specific ds1972 on a multidrop bus and to simultaneously set it in overdrive mode. only the ds1972 that exactly matches the 64-bit rom sequence responds to the subsequent memory function command. slaves already in overdrive mode from a previous overdrive-skip or successful overdrive-match command remain in overdrive mode. all overdrive-capable slaves return to standard speed at the next reset pulse of minimum 480s duration. the overdrive-match rom command can be used with a single or multiple devices on the bus.
ds1972: 1024-bit eeprom i button 16 of 23 figure 9-1. rom functions flow chart from figure 9 2 nd part to memory functions flow chart (figure 7) master tx bit 0 master tx bit 63 master tx bit 1 bit 63 match ? rc = 0 ds1972 tx bit 0 ds1972 tx bit 0 master tx bit 0 ds1972 tx bit 1 ds1972 tx bit 1 master tx bit 1 ds1972 tx bit 63 ds1972 tx bit 63 master tx bit 63 rc = 1 bit 1 match ? bit 0 match ? y n y n y n bit 63 match ? rc = 0 rc = 1 bit 1 match ? bit 0 match ? y n y n y n rc = 0 ds1972 tx crc byte ds1972 tx serial number (6 bytes) ds1972 tx family code (1 byte) rc = 0 to figure 9 2 nd part n f0h search rom command ? n 55h match rom command ? n cch skip rom command ? y y y y n 33h read rom command ? to figure 9 2 nd part from memory functions flow chart (figure 7) bus master tx rom function command ds1972 tx presence pulse od reset pulse ? n y od = 0 bus master tx reset pulse from figure 9, 2 n d part
ds1972: 1024-bit eeprom i button 17 of 23 figure 9-2. rom functions flow chart (continued) to figure 9 1 st part from figure 9 1 st part from figure 9 1 st part to figure 9, 1 s t part y n a5h resume command ? rc = 1 ? y n 3ch overdrive- skip rom ? rc = 0 ; od = 1 master tx reset ? y n n y master tx reset ? n y master tx bit 0 master tx bit 63 master tx bit 1 bit 63 match ? rc = 0 ; od = 1 rc = 1 bit 1 match ? y n y n bit 0 match ? y n y n 69h overdrive-match rom ? od = 0 od = 0 od = 0
ds1972: 1024-bit eeprom i button 18 of 23 1-wire signaling the ds1972 requires strict protocols to ensure data integrity. the protocol consists of four types of signaling on one line: reset sequence with reset pulse and presence pulse, write-zero, write-one, and read-data. except for the presence pulse, the bus master initiates all falling edges. the ds1972 can communicate at two different speeds, standard speed, and overdrive speed. if not explicitly set into the overdrive mode, the ds1972 communicates at standard speed. while in overdrive mode the fast timing applies to all waveforms. to get from idle to active, the voltage on the 1-wire line needs to fall from v pup below the threshold v tl . to get from active to idle, the voltage needs to rise from v ilmax past the threshold v th . the time it takes for the voltage to make this rise is seen in figure 10 as '  ' and its duration depends on the pullup resistor (r pup ) used and the capacitance of the 1-wire network attached. the voltage v ilmax is relevant for the ds1972 when determining a logical level, not triggering any events. figure 10 shows the initialization sequence required to begin any communication with the ds1972. a reset pulse followed by a presence pulse indicates the ds1972 is ready to receive data, given the correct rom and memory function command. if the bus master uses slew-rate control on the falling edge, it must pull down the line for t rstl + t f to compensate for the edge. a t rstl duration of 480s or longer exits the overdrive mode, returning the device to standard speed. if the ds1972 is in overdrive mode and t rstl is no longer than 80s. the device remains in overdrive mode. if the device is in overdrive mode and t rstl is between 80s and 480s, the device will reset, but the communication speed is undetermined. figure 10. initialization procedure: reset and presence pulse resistor master ds1972 t rstl t pdl t rsth t pdh master tx ?reset pulse? master rx ?presence pulse? v pup v ihmaster v th v tl v ilmax 0v  t f t rec t msp after the bus master has released the line it goes into receive mode. now the 1-wire bus is pulled to v pup through the pullup resistor, or in case of a ds2482-x00 or ds2480b driver, by active circuitry. when the threshold v th is crossed, the ds1972 waits for t pdh and then transmits a presence pulse by pulling the line low for t pdl . to detect a presence pulse, the master must test the logical state of the 1-wire line at t msp . the t rsth window must be at least the sum of t pdhmax , t pdlmax , and t recmin . immediately after t rsth is expired, the ds1972 is ready for data communication. in a mixed population network, t rsth should be extended to minimum 480s at standard speed and 48s at overdrive speed to accommodate other 1-wire devices. read-/write-time slots data communication with the ds1972 takes place in time slots, which carry a single bit each. write-time slots transport data from bus master to slave. read-time slots transfer data from slave to master. figure 11 illustrates the definitions of the write- and read-time slots. all communication begins with the master pulling the data line low. as the voltage on the 1-wire line falls below the threshold v tl , the ds1972 starts its internal timing generator that determines when the data line is sampled during a write-time slot and how long data is valid during a read-time slot.
ds1972: 1024-bit eeprom i button 19 of 23 master-to-slave for a write-one time slot, the voltage on the data line must have crossed the v th threshold before the write-one low time t w1lmax is expired. for a write-zero time slot, the voltage on the data line must stay below the v th threshold until the write-zero low time t w0lmin is expired. for the most reliable communication, the voltage on the data line should not exceed v ilmax during the entire t w0l or t w1l window. after the v th threshold has been crossed, the ds1972 needs a recovery time t rec before it is ready for the next time slot. figure 11. read/write timing diagram write-one time slot resistor master v pup v ihmaster v th v tl v ilmax 0v t f t slot t w1l  write-zero time slot resistor master t rec v pup v ihmaster v th v tl v ilmax 0v t f t slot t w0l read-data time slot resistor master ds1972 t rec v pup v ihmaster v th v tl v ilmax 0v master sampling window  t f t slot t rl t msr
ds1972: 1024-bit eeprom i button 20 of 23 slave-to-master a read-data time slot begins like a write-one time slot. the voltage on the data line must remain below v tl until the read low time t rl is expired. during the t rl window, when responding with a 0, the ds1972 starts pulling the data line low; its internal timing generator determines when this pulldown ends and the voltage starts rising again. when responding with a 1, the ds1972 does not hold the data line low at all, and the voltage starts rising as soon as t rl is over. the sum of t rl +  (rise time) on one side and the internal timing generator of the ds1972 on the other side define the master sampling window (t msrmin to t msrmax ) in which the master must perform a read from the data line. for the most reliable communication, t rl should be as short as permissible, and the master should read close to but no later than t msrmax . after reading from the data line, the master must wait until t slot is expired. this guarantees sufficient recovery time t rec for the ds1972 to get ready for the next time slot. note that t rec specified herein applies only to a single ds1972 attached to a 1-wire line. for multidevice configurations, t rec needs to be extended to accommodate the additional 1-wire device input capacitance. alternatively, an interface that performs active pullup during the 1-wire recovery time such as the ds2482-x00 or ds2480b 1-wire line drivers can be used. improved network behavior (switchpoint hysteresis) in a 1-wire environment, line termination is possible only during transients controlled by the bus master (1-wire driver). 1-wire networks, therefore, are susceptible to noise of various origins. depending on the physical size and topology of the network, reflections from end points and branch points can add up, or cancel each other to some extent. such reflections are visible as glitches or ringing on the 1-wire communication line. noise coupled onto the 1-wire line from external sources can also result in signal glitching. a glitch during the rising edge of a time slot can cause a slave device to lose synchronization with the master and, consequently, result in a search rom command coming to a dead end or cause a device-specific function command to abort. for better performance in network applications, the ds1972 uses a new 1-wire front end, which makes it less sensitive to noise. the 1-wire front end of the ds1972 differs from traditional slave devices in three characteristics. 1) there is additional low-pass filtering in the circuit that detects the falling edge at the beginning of a time slot. this reduces the sensitivity to high-frequency noise. this additional filtering does not apply at overdrive speed. 2) there is a hysteresis at the low-to-high switching threshold v th . if a negative glitch crosses v th but does not go below v th - v hy , it will not be recognized (figure 12, case a). the hysteresis is effective at any 1-wire speed. 3) there is a time window specified by the rising edge hold-off time t reh during which glitches are ignored, even if they extend below v th - v hy threshold (figure 12, case b, t gl < t reh ). deep voltage droops or glitches that appear late after crossing the v th threshold and extend beyond the t reh window cannot be filtered out and are taken as the beginning of a new time slot (figure 12, case c, t gl  t reh ). devices that have the parameters v hy , and t reh specified in their electrical characteristics use the improved 1-wire front end. figure 12. noise suppression scheme v pup v th v hy 0v t reh t gl t reh t gl case a case c case b
ds1972: 1024-bit eeprom i button 21 of 23 crc generation with the ds1972 there are two different types of crcs. one crc is an 8-bit type and is stored in the most significant byte of the 64-bit rom. the bus master can compute a crc value from the first 56 bits of the 64-bit rom and compare it to the value stored within the ds1972 to determine if the rom data has been received error- free. the equivalent polynomial function of this crc is x 8 + x 5 + x 4 + 1. this 8-bit crc is received in the true (noninverted) form. it is computed at the factory and lasered into the rom. the other crc is a 16-bit type, generated according to the standardized crc16-polynomial function x 16 + x 15 + x 2 + 1. this crc is used for fast verification of a data transfer when writing to or reading from the scratchpad. in contrast to the 8-bit crc, the 16-bit crc is always communicated in the inverted form. a crc generator inside the ds1972 i button (figure 13) calculates a new 16-bit crc, as shown in the command flow chart (figure 7). the bus master co mpares the crc value read from the device to the one it calculates from the data, and decides whether to continue with an operation or to reread the portion of the data with the crc error. with the write scratchpad command, the crc is generated by first clearing the crc generator and then shifting in the command code, the target addresses ta1 and ta2, and all the data bytes as they were sent by the bus master. the ds1972 transmits this crc only if e2:e0 = 111b. with the read scratchpad command, the crc is generated by first clearing the crc generator and then shifting in the command code, the target addresses ta1 and ta2, the e/s byte, and the scratchpad data as they were sent by the ds1972. the ds1972 transmits this crc only if the reading continues through the end of the scratchpad. for more information on generating crc values, refer to application note 27 . figure 13. crc-16 hardware description and polynomial pol y nomial = x 16 + x 15 + x 2 + 1 x 0 x 1 x 2 x 3 x 4 x 5 x 6 x 7 x 8 x 9 x 10 x 11 x 12 x 13 x 14 x 15 x 16 1 st stage 2 nd stage 3 rd stage 4 th stage 6 th stage 5 th stage 7 th stage 8 th stage 9 th stage 10 th stage 11 th stage 12 th stage 13 th stage 14 th stage 15 th stage 16 th stage input dat a crc output command-specific 1-wire communication protocol?color codes master to slave slave to master programming
ds1972: 1024-bit eeprom i button 22 of 23 command-specific 1-wire communication protocol?legend symbol description rst 1-wire reset pulse generated by master. pd 1-wire presence pulse generated by slave. select command and data to satisfy the rom function protocol. ws command "write scratchpad". rs command "read scratchpad". cps command "copy scratchpad". rm command "read memory". ta target address ta1, ta2. ta-e/s target address ta1, ta2 with e/s byte. <8 ? t2:t0 bytes> transfer of as many bytes as needed to reach the end of the scratchpad for a given target address. transfer of as many data bytes as are needed to reach the end of the memory. crc16\ transfer of an inverted crc16. ff loop indefinite loop where the master reads ff bytes. aa loop indefinite loop where the master reads aa bytes. programming data transfer to eeprom; no activity on the 1-wire bus permitted during this time. write scratchpad (cannot fail) rst pd select ws ta <8 ? t2:t0 bytes> crc16\ ff loop read scratchpad (cannot fail) rst pd select rs ta-e/s <8 ? t2:t0 bytes> crc16\ ff loop copy scratchpad (success) rst pd select cps ta-e/s programming aa loop copy scratchpad (invalid address or pf = 1 or copy protected) rst pd select cps ta-e/s ff loop read memory (success) rst pd select rm ta ff loop read memory (invalid address) rst pd select rm ta ff loop
ds1972: 1024-bit eeprom i button 23 of 23 memory function example write to the first 8 bytes of memory page 1. read the entire memory. with only a single ds1972 connected to the bus master, the communication looks like this: master mode data (lsb first) comments tx (reset) reset pulse rx (presence) presence pulse tx cch issue ?skip rom? command tx 0fh issue ?write scratchpad? command tx 20h ta1, beginning offset = 20h tx 00h ta2, address = 00 20h tx <8 data bytes> write 8 bytes of data to scratchpad rx <2 bytes crc16\> read crc to check for data integrity tx (reset) reset pulse rx (presence) presence pulse tx cch issue ?skip rom? command tx aah issue ?read scratchpad? command rx 20h read ta1, beginning offset = 20h rx 00h read ta2, address = 00 20h rx 07h read e/s, ending offset = 111b, aa, pf = 0 rx <8 data bytes> read scratchpad data and verify rx <2 bytes crc16\> read crc to check for data integrity tx (reset) reset pulse rx (presence) presence pulse tx cch issue ?skip rom? command tx 55h issue ?copy scratchpad? command tx 20h ta1 tx 00h ta2 (authorization code) tx 07h e/s  <1-wire idle high> wait t progmax for the copy function to complete rx aah read copy status, aah = success tx (reset) reset pulse rx (presence) presence pulse tx cch issue ?skip rom? command tx f0h issue ?read memory? command tx 00h ta1, beginning offset = 00h tx 00h ta2, address = 00 00h rx <144 data bytes> read the entire memory tx (reset) reset pulse rx (presence) presence pulse


▲Up To Search▲   

 
Price & Availability of DS1972-F3

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X